class Animal:
    def __init__(self, name,old):
        self.name = name
        self.old = old

    def eat(self):
        print('Eating')

    def sleep(self):
        print('Sleep')

    def drink(self):
        print('Drink')

    def run(self):
        print('Run')


class Dog(Animal):
    def __init__(self, name,old,color):
        super().__init__(name,old)
        self.color = color

    def bark(self):
        print('Bark')


class XiaoTianQuan(Dog):
    def __init__(self,name,old,color,weapon):
        super().__init__(name,old,color)
        self.weapon = weapon



if __name__ == '__main__':
    xtq = XiaoTianQuan('XTQ',10,'black','big bone')
    print(xtq.name)




















